<div class="wrap">
<h2>Редагування замовлень</h2>
<form action="admin.php?page=edit-orders&action=submit" method="POST">



	 <table class="widefat" width="100%">
	 
	  <thead>
	    <tr class="table-header">
		 <th>Назва товара</th>
		 <th>Ціна</th>
                 <th>Кількість</th>
                 <th>Сума</th>
		 <th>Комент замовлення</th>
                 <th>Статус</th>
            </tr>
	  </thead>
	  
	  <tbody>
		 
		<tr >
		 <td class="order_date"> <input type="text" name="product_name" id="product_name" value="<?php echo $this->orderdata['order']['product_name'] ?>"  /></td>
		 <td class="order_date"> <input type="text" name="product_cost" id="product_cost" value="<?php echo $this->orderdata['order']['product_cost'] ?>" /></td>
                 <td class="order_date"> <input type="text" name="product_count" id="product_count" value="<?php echo $this->orderdata['order']['product_count'] ?>"/></td> 
		 <td class="order_price"><input type="text" name="product_total" id="totalprice" value="<?php echo $this->orderdata['order']['product_total'] ?>" /></td>
                 <td class="order_price"><input type="text" name="product_coment" id="totalprice" value="<?php echo $this->orderdata['order']['product_coment'] ?>" /></td>
		 <td class="status">
         <label for="status"></label>
         	<select name="status" id="status">
            	<option  value="new" <?php if($this->orderdata['order']['status'] == "new"){ echo 'selected="selected"';}?>>Новий</option>
            	<option value="in_progress" <?php if($this->orderdata['order']['status'] == "in_progress"){ echo' selected="selected"';}?>>В процесі</option>
            	<option value="delivered" <?php if($this->orderdata['order']['status'] == "delivered"){ echo' selected="selected"';}?>>Доставлено</option>
            </select>
		 </td>
		</tr>
	  </tbody>

	 </table> 


  <div style="text-align:center">
    <input type="hidden" name="id" value="<?php echo $this->orderdata['order']['id'] ?>" />
	<input type="submit" class="button" name="send" value="Поміняти" />
  </div>
 </form>
</div> <!-- /#center-panel -->
